package 门面模式.v3;

public class ModenPostOffice {

    LetterProcess lp = new LetterProcessImpl();

    Police police = new Police();
    //写信,封装,投递,一体化了
    public void sendLetter(String context, String address){
        // 帮你写信
        lp.writeContext(context);
        // 写好信封
        lp.fillEnvelope(address);

        // 警察要检查信件了
        police.checkLetter(lp);

        lp.letterInotoEnvelope();
        lp.sendLetter();
    }
}
